//
//  KVNetworkTool.swift
//  KVBestMicroblog
//
//  Created by 李康卫 on 16/7/19.
//  Copyright © 2016年 李康卫. All rights reserved.
//

import UIKit

import AFNetworking


class KVNetworkTool: AFHTTPSessionManager {
    //实现网络单例
    static let sharedNetworkTool: KVNetworkTool = KVNetworkTool(baseURL: NSURL(string: "https://api.weibo.com/oauth2/"))
    
    override init(baseURL url: NSURL?, sessionConfiguration configuration: NSURLSessionConfiguration?) {
        super.init(baseURL: url, sessionConfiguration: configuration)
        self.responseSerializer.acceptableContentTypes?.insert("text/plain")
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
}
